package cn.com.common.constants;

/**
 * 业务数据常量类
 */
public final class Constants {

	/**
	 * 常用接口
	 */
	public static class Url {
		// IP归属地查询
		public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
	}

	/**
	 * 项目字符集
	 */
	public static final String PROJECT_ENCODING = "UTF-8";

	/**
	 * 请求ID，主要记录日志中及返回报文中
	 */
	public static final String REQUEST_ID = "reqid";

	/**
	 * 定时任务状态
	 */
	public static final Integer SCHEDULER_STATUS_NORMAL = 0;
	public static final Integer SCHEDULER_STATUS_PAUSE = 1;

	/**
	 * redis的token相关
	 */
	public static final String ACCESS_TOKEN = "authorization";
	public static final String PERMISSIONS_KEY = "permissions-key";
	public static final String USERID_KEY = "userid-key";
	public static final String USERNAME_KEY = "username-key";
	public static final String ROLES_KEY = "roles-key";
	public static final String DEPT_ID = "deptid-key";
	public static final String DEPT_NO = "deptno-key";
	public static final String IDENTITY_NO = "identityno-key";
	public static final String IDENTITY_NAME = "identityname-key";
	
	public static final String USER_ROLE = "user-key";
	public static final String ROLES_ID = "roles-id";

	/**
	 * session 相关
	 */
	public static final String SESSION_CAPTCHA_PHONE = "session-captcha-phone";

	/**
	 * 删除值 1：未删除 0：已删除
	 */
	public static final Integer DATA_NOT_DELETED = 1;
	public static final Integer DATA_YES_DELETEED = 0;

	/**
	 * 数据库类型
	 */
	public static final String DB_TYPE_MYSQL = "mysql";
	public static final String DB_TYPE_ORACLE = "oracle";
	public static final String DB_TYPE_SQL_SERVER = "sqlServer";
	public static final String DB_TYPE_POSTGRESQL = "postgresql";
	
	/**
	 * delete 数据字典
	 */
	public static final Integer DELETEED_NOT = 1; // 1未删除
	public static final Integer DELETEED_YES = 0; // 0已删除

	/**
	 * status 数据字典
	 */
	public static final Integer STATUS_LOCK = 2; // 锁定
	public static final Integer STATUS_NORMAL = 1;// 正常
	
	public static final String TAX_PROVINCES = "provinces"; // 
	public static final String TAX_CITIES = "cities"; // 
	public static final String TAX_COUNTES = "counties"; // 
	
	public static final String TAX_PROVINCES_POWER = "1";
	public static final String TAX_CITIES_POWER = "2";
	public static final String TAX_COUNTES_POWER  = "3";
	
	// 1：省局 2：市局 3：县区局
	
	
	public static final String GAS_CAR_SMALL = "2"; // 小型车 
	public static final String GAS_CAR_BIG = "5"; // 大客车 
	public static final String GAS_CAR_MOTO = "3"; // 摩托车  
	public static final String GAS_CAR_TRUCK = "7"; // 卡车 
	public static final String GAS_CAR_PROJECT = "23"; // 工程车
	
	public static final String GAS_CAR_FARMING = "31"; // 农用车
	public static final String GAS_CAR_LIGHTTRUCK = "30"; // 轻卡
	
	/**
	 * 定时任务状态 定时任务参数，任务状态 0：正常 1：暂停
	 */
	public static final String JOB_START = "0";
	public static final String JOB_STOP = "1";
	
}
